发放及查询用户银行提现免费券
为用户发银行提现免费券
为用户发银行提现免费券
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 用户标识 |
json | object | 声明请求的JSON 数据结构 |
mchid | string | 银行提现免费券批次创建方商户号 |
stock_id | string | 银行提现免费券批次ID |
appid | string | 应用ID |
send_request_no | string | 商户单据号 |
php
$instance->v3->marketing->withdrawFavor->users->_openid_->coupons->postAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'json' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'send_request_no' => '89560002019101000121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->postAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'json' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'send_request_no' => '89560002019101000121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->postAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'json' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'send_request_no' => '89560002019101000121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->withdrawFavor->users->_openid_->coupons->post([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'json' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'send_request_no' => '89560002019101000121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->post([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'json' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'send_request_no' => '89560002019101000121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->post([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'json' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'send_request_no' => '89560002019101000121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
coupon_id | string | 银行提现免费券ID |
expire_time | string | 银行提现免费券过期时间 |
参阅 官方文档
查询批次下用户银行提现免费券列表
查询批次下用户银行提现免费券列表
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 用户标识 |
query | object | 声明请求的查询参数 |
mchid | string | 银行提现免费券批次创建方商户号 |
stock_id | string | 银行提现免费券批次ID |
appid | string | 应用ID |
offset | integer | 分页页码 |
limit | integer | 分页大小 |
php
$instance->v3->marketing->withdrawFavor->users->_openid_->coupons->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'offset' => 1,
'limit' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'offset' => 1,
'limit' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'offset' => 1,
'limit' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->withdrawFavor->users->_openid_->coupons->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'offset' => 1,
'limit' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'offset' => 1,
'limit' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'mchid' => '1230000109',
'stock_id' => '1304490000000059',
'appid' => 'wxd678efh567hg6787',
'offset' => 1,
'limit' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
data | object[] | 银行提现免费券列表 |
send_time | string | 发放时间 |
send_quota | integer | 发放额度 |
coupon_id | string | 银行提现免费券的券ID |
use_quota | integer | 使用额度 |
coupon_state | string | 银行提现免费券券状态 |
offset | integer | 分页页码 |
limit | integer | 分页大小 |
total_count | integer | 查询结果总数 |
参阅 官方文档